<div id="mws-container" class="clearfix">
<div class="container">
  <div class="mws-panel grid_8">
    <div class="mws-panel-header"> <span class="mws-i-24 i-list"><?php echo "Edit"; ?> User</span> </div>
    <div class="mws-panel-body">
      <div class="mws-form-inline">
       <?php echo $form->create(array('controller'=>'setups','action'=>'','method'=>'post','class' => 'mws-form', 'enctype'=>'multipart/form-data')); ?>
          <?php 
		if(isset($details['User']['id'])){$details['User']['id']=$details['User']['id'];}else{$details['User']['id']="";}
		  echo $this->Form->input('User.id', array('type' => 'hidden','value'=>$details['User']['id']));?>
          <?php
		  		foreach($details['User'] as $key=>$val)
						{
							if(isset($key) and (($key=="id") or ($key=="password") or ($key=="slug") or ($key=="hash")))
							{
								
							}
							elseif($key=="img")
							{
								?>
                                <div class="mws-form-row">
                                <label>* <?php echo str_replace("_"," ",strtoupper($key));  ?> :</label>
                                <div class="mws-form-item small"> 
                                <?php 
                                if(isset($details['User'][''.$key.'']))
								{$details['User'][''.$key.'']=$details['User'][''.$key.''];}else{$details['User'][''.$key.'']="";}
                                echo $this->Form->input('User.'.$key.'', 
								array('type' => 'file','name'=>'data[User][imgImage]','class'=>'mws-textinput','label' =>false));
                                ?>
                                </div>
                                </div>
								<?php
							}
							else
							{
				  ?>
                                <div class="mws-form-row">
                                <label>* <?php echo str_replace("_"," ",strtoupper($key));  ?> :</label>
                                <div class="mws-form-item small"> 
                                <?php 
                                if(isset($details['User'][''.$key.'']))
								{$details['User'][''.$key.'']=$details['User'][''.$key.''];}else{$details['User'][''.$key.'']="";}
                                echo $this->Form->input('User.'.$key.'', 
								array('type' => 'text','value'=>$details['User'][''.$key.''],'class'=>'mws-textinput','label' =>false));
                                ?>
                                </div>
                                </div>
				<?php
							}
				}
				?>
        <div class="mws-button-row">
          <input type="submit" class="mws-button black" value="Submit">
        </div>
        </form>
      </div>
    </div>
  </div>
</div>
s